package com.aaa.hospital.ManagementEnd.service.Impl;

import com.aaa.hospital.ManagementEnd.mapper.ReceiptsMapper;
import com.aaa.hospital.ManagementEnd.pojo.Receipts;
import com.aaa.hospital.ManagementEnd.pojo.ReceiptsVo;
import com.aaa.hospital.ManagementEnd.service.ReceiptsSer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ReceiptsSerImpl implements ReceiptsSer {
    @Autowired
    private ReceiptsMapper receiptsMapper;
    @Override
    public List<Receipts> queryAll() {
        return receiptsMapper.queryAll();
    }


    @Override
    public int insert(Receipts receipts) {
        return receiptsMapper.insert(receipts);
    }


    @Override
    public List<Receipts> selectProfit() {
        return receiptsMapper.selectProfit();
    }

    @Override
    public List<ReceiptsVo> select_rec(Integer id, String ypname) {
        return receiptsMapper.select_rec(id,ypname);
    }
}
